<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Ext JS Calendar Sample</title>
	<%@ include file="/common/meta_ext.jsp"%>
    
    <script src="${ctx}/resources/js/aos/ext_ux/BasicGrid.js" type="text/javascript"></script>
    <script src="${ctx}/wf/mgmt/common/GroupGrid.js" type="text/javascript"></script>
    
    <script type="text/javascript" src="${ctx}/common/calendar/CalendarGrid.js"></script>
</head>
<body>
<script type="text/javascript">
var ctx = "${ctx}";

Ext.onReady(function(){
		Ext.QuickTips.init();
		
		var grid = new Ext.ux.calendar.CalendarGrid({
	    	groupField: 'calendarId',
	    	region: 'center',
	    	layout: 'fit',
	    	title: '今天的日程',
	    	margins: '1 1 1 1',
			url: ctx + '/calendar/sys-calendar!getCalendarEvents.action'
		}); 
		
		
		
		var viewport = new Ext.Viewport({
			layout: 'border',
			items: [grid]
		});
		
		
});
	
</script>
</body>

</html>